setGlobalDuration(10)

example = 5

if example == 1:
    sine()

elif example == 2:
    sine(pitch=[500,750,1000], amplitude=0.5)

elif example == 3:
    env = genAdsr()
    sine(pitch=[500,750,1000], amplitude=0.5, envelope=env)

elif example == 4:
    env = genAdsr()
    randomh(bus='pit', mini=0.9, maxi=1.1, rate=2)
    sine(pitch=[500,750,1000], amplitude=0.5, envelope=env, pitchVar='pit')

elif example == 5:
    env = genAdsr()
    randomh(bus=[1,2,3], mini=0.9, maxi=1.15, rate=[1.5,2,3])
    sine(pitch=[500,750,1000], amplitude=0.5, envelope=env, pitchVar=[1,2,3])

startCsound()
